// part1:C14:14.16:my_String.h
#ifndef MY_STRING_H__
#define MY_STRING_H__
#include <iostream>
#include <string>
class String
{
public:
    String();
    String(const char *str): str(str){}
    ~String(){}
    friend bool operator==(const String &lhs, const string &rhs);
    friend bool operator!=(const String &lhs, const string &rhs);
private:
    const char *str;
};

bool operator==(const String &lhs, const string &rhs)
{
    return strcmp(lhs.str, rhs.str);
}
bool operator!=(const String &lhs, const string &rhs)
{
    return !(lhs == rhs);
}
#endif

